Import
Usage
Return Type: UseInfiniteQueryResult
The hook returns a React Query infinite query result object with the following key properties:
Parameters
Query Options
You can customize the query behavior using the optional parameters:
Notes
This hook is useful for:
- Displaying a list of primary sale items with infinite scroll
- Building marketplace primary sale pages
- Showing available items for initial sale
- Managing paginated data loading
The hook automatically handles:
- Infinite scrolling pagination
- Data fetching and caching
- Loading and error states
- Type-safe responses
Make sure to handle the loading states appropriately, especially
isFetchingNextPage when implementing infinite scroll functionality.
The primarySaleContractAddress must be a valid contract address that
supports primary sales. Invalid addresses will result in failed queries.